#ifndef GLOBALS_H_INCLUDED
#define GLOBALS_H_INCLUDED
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <Thor/Animation/FrameAnimation.hpp>
#include <random>

const int WIDTH = 800;
const int HEIGHT = 600;
const int TIMESTEP = 5;
extern int side;

//extern std::mt19937 rng;

extern thor::FrameAnimation::Ptr explosion;
extern sf::Font font;

extern int points;
extern int lives;
extern int killedBricks;
extern int currentState;
extern int pauseCount;


//![STATS]
extern long tNormalBricks;
extern long tExploBricks;
extern long tGreenBricks;
extern long tMiniBricks;
extern long tPinBricks;
extern long tSmallerPanelBonuses;
extern long tBiggerPanelBonuses;
extern long tLiveBonuses;
extern long tPauseBonuses;
extern long tAcidBonuses;
extern long tBallBonuses;
extern long tLivesLost;
extern long tGameOver;
extern long tBestScore;
//![/STATS]

extern bool dead;
extern bool Pause;

bool collide(sf::Sprite s1, sf::Sprite s2);
float abso(float i);
std::string to_string(int number);
void setCenter(sf::Text& txt, int y);



#endif // GLOBALS_H_INCLUDED
